package com.pojo;

/**
 * 商品实体类
 */
public class Product {
    private Integer p_num;

    private String p_id;

    private String p_name;

    private String p_type;

    private String p_brand;

    private String p_code;

    private String p_rule;

    private Integer p_cost;

    private Integer p_retail;

    private String p_remarks;
    
    public Product() {
    }
    
    public Product(String p_id) {
        this.p_id = p_id;
    }
    
    
    public Integer getP_num() {
        return p_num;
    }

    public void setP_num(Integer p_num) {
        this.p_num = p_num;
    }

    public String getP_id() {
        return p_id;
    }

    public void setP_id(String p_id) {
        this.p_id = p_id == null ? null : p_id.trim();
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name == null ? null : p_name.trim();
    }

    public String getP_type() {
        return p_type;
    }

    public void setP_type(String p_type) {
        this.p_type = p_type == null ? null : p_type.trim();
    }

    public String getP_brand() {
        return p_brand;
    }

    public void setP_brand(String p_brand) {
        this.p_brand = p_brand == null ? null : p_brand.trim();
    }

    public String getP_code() {
        return p_code;
    }

    public void setP_code(String p_code) {
        this.p_code = p_code == null ? null : p_code.trim();
    }

    public String getP_rule() {
        return p_rule;
    }

    public void setP_rule(String p_rule) {
        this.p_rule = p_rule == null ? null : p_rule.trim();
    }

    public Integer getP_cost() {
        return p_cost;
    }

    public void setP_cost(Integer p_cost) {
        this.p_cost = p_cost;
    }

    public Integer getP_retail() {
        return p_retail;
    }

    public void setP_retail(Integer p_retail) {
        this.p_retail = p_retail;
    }

    public String getP_remarks() {
        return p_remarks;
    }

    public void setP_remarks(String p_remarks) {
        this.p_remarks = p_remarks == null ? null : p_remarks.trim();
    }
    
    @Override
    public String toString() {
        return "Product{" +
                "p_num=" + p_num +
                ", p_id='" + p_id + '\'' +
                ", p_name='" + p_name + '\'' +
                ", p_type='" + p_type + '\'' +
                ", p_brand='" + p_brand + '\'' +
                ", p_code='" + p_code + '\'' +
                ", p_rule='" + p_rule + '\'' +
                ", p_cost=" + p_cost +
                ", p_retail=" + p_retail +
                ", p_remarks='" + p_remarks + '\'' +
                '}';
    }
}